package com.chapter02;

import com.bdqn.util.JDBCUtils;

import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;

public class TestConnection6 {
    public static void main(String[] args) throws SQLException, ClassNotFoundException, IllegalAccessException, InstantiationException, IOException {
        // todo 获取数据库连接对象
        Connection connection = JDBCUtils.getConnection();

        // todo 输出连接对象
        System.out.println(connection.getClass().getName());
    }
}
